package com.bjsxt;

/**
 * 单例模式 - 静态内部类
 * 推荐
 *
 * @author lichunlong
 */
public class SingletonDemo04 {

    private static class SingletonClassInstance {
        private static final SingletonDemo04 INSTANCE = new SingletonDemo04();
    }

    private SingletonDemo04() {

    }

    public static SingletonDemo04 getInstance() {
        return SingletonClassInstance.INSTANCE;
    }

}